package com.zhuhjay.service.system.model.dto;

import com.zhuhjay.common.web.annotation.Matching;
import lombok.Data;

import javax.validation.constraints.NotBlank;

import static com.zhuhjay.common.web.enums.MatchingMode.Password;

/**
 * @author ZhuHJay
 * @date 2023/3/5 17:03
 */
@Data
public class UserPasswordDto {
    @NotBlank(message = "旧密码输入不能为空")
    private String oldPassword;
    @Matching(Password)
    private String newPassword;
}
